package cn.scau.edu.software.lgh.entity;

public class RouteListData {

    private String goalNetwork;

    private int distance;

    private Route beatToNextRoute;

    /**
     * 生成一行路由表数据
     * @param goalNetwork
     * @param distance
     * @param beatToNextRoute 如果未null则代表直接相连
     */
    public RouteListData(String goalNetwork, int distance, Route beatToNextRoute) {
        this.goalNetwork = goalNetwork;
        this.distance = distance;
        this.beatToNextRoute = beatToNextRoute;
    }

    public String getGoalNetwork() {
        return goalNetwork;
    }

    public void setGoalNetwork(String goalNetwork) {
        this.goalNetwork = goalNetwork;
    }

    public int getDistance() {
        return distance;
    }

    public void setDistance(int distance) {
        this.distance = distance;
    }

    public Route getBeatToNextRoute() {
        return beatToNextRoute;
    }

    public void setBeatToNextRoute(Route beatToNextRoute) {
        this.beatToNextRoute = beatToNextRoute;
    }
}
